import request from '@/utils/request'

// 查询用户笔记类别列表
export function listUserNoteCat(query) {
  return request({
    url: '/easybook/userNoteCat/list',
    method: 'get',
    params: query
  })
}

// 查询用户笔记类别详细
export function getUserNoteCat(userCategoryId) {
  return request({
    url: '/easybook/userNoteCat/' + userCategoryId,
    method: 'get'
  })
}

// 新增用户笔记类别
export function addUserNoteCat(data) {
  return request({
    url: '/easybook/userNoteCat',
    method: 'post',
    data: data
  })
}

// 修改用户笔记类别
export function updateUserNoteCat(data) {
  return request({
    url: '/easybook/userNoteCat',
    method: 'put',
    data: data
  })
}

// 删除用户笔记类别
export function delUserNoteCat(userCategoryId) {
  return request({
    url: '/easybook/userNoteCat/' + userCategoryId,
    method: 'delete'
  })
}
